package com.eps.security;

import java.io.IOException;

public class test {
    public static void main(String[] args) throws IOException {
        StringBuffer cmd = new StringBuffer();
        cmd.append("C:\\jdk1.7.0_06\\bin\\");
        cmd.append("keytool -genkey -v -alias weblogicssl -keyalg RSA -keysize 1024 -validity 365 ");
        cmd.append("-keystore C:/weblogic.jks ");
        cmd.append("-keypass 123456789 -storepass 123456789 ");
        cmd.append("-dname \"CN=localhost,OU=cn,O=cn,L=cn,ST=cn,C=cn\"");
        Process ps = Runtime.getRuntime().exec(cmd.toString());
    }
}
